<?php
	header("Content-type:text/html;charset=utf-8");
	if(is_file("lock.php")){
		echo "请删除install目录下的lock.php文件，再行安装";
		exit;
	}
	$step = isset($_GET['step'])?(int)$_GET['step']:1;
	switch($step){
		case 1:
			include "tpl/step1.html";
			break;
		case 2:
			include "tpl/step2.html";
			break;
		case 3:
			fopen("lock.php","x");//创建锁文件 
			unlink("../index.html");
			header("refresh:3;url=http://localhost/yc1/0311/bbs");//3秒后跳转到论坛首页
			echo "安装完成";
	}
?>